import React from 'react';
import { connect } from 'dva';
import Modal from '../../components/Sideslip/Sideslip';
import Form from './indexForm';


class PersonalModal extends React.Component{
    closeModal = () => {
        this.props.operateModal();
    }
    render() {
        return (
            <Modal visable={this.props.visable} closeModal={this.closeModal} getEmployee={this.props.getEmployee} >
                <Form closeModal={this.closeModal} data={this.props.data} getEmployee={this.props.getEmployee} optionType={this.props.optionType}/>
            </Modal>
        );
    }
}

export default connect()(PersonalModal);